package com.delio.client.util;

import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;

public class Orientacion  extends BorderLayoutData{
	public Orientacion(LayoutRegion region) {
		super(region);
		setCollapsible(false);
		setFloatable(false);
		setSplit(false);
		setMargins(new Margins(2, 2, 2, 2));
		

	}

	public Orientacion(int weight) {

		super(LayoutRegion.WEST, weight);
		setCollapsible(true);
		setFloatable(false);
		setSplit(false);
		setMargins(new Margins(3, 3, 3, 3));
	}
	
	public Orientacion(int weight,LayoutRegion x,boolean valor) {

		super(x, weight);
		setCollapsible(valor);
		setFloatable(false);
		setSplit(false);
		
		setMargins(new Margins(3, 3, 3, 3));
	}
	
	public Orientacion(int weight,LayoutRegion x) {

		super(x, weight);
		setCollapsible(false);
		setFloatable(false);
		setSplit(false);
		setMargins(new Margins(3, 3, 3, 3));
	}
	
	public Orientacion() {
		super(LayoutRegion.CENTER);
		setMargins(new Margins(0,0, 0, 0));
		

	}

	public Orientacion(int weight,LayoutRegion x,Margins margin) {

		super(x, weight);
		setCollapsible(false);
		setFloatable(false);
		setSplit(false);
		setMargins(margin);
	}
}
